<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<img alt="" src="./images/title.png">
<hr>
<title>修改雇员</title>
<?php 
require_once 'Emp.service.class.php';
$id=$_REQUEST['id'];
$empservice=new Empservice();
$emp=$empservice->getEmpById($id);

?>
<body>
<form action="empProcess.php" method="post">
<table>
<tr><td>ID:</td><td><input readonly="readonly" type="text" name="id" value="<?php echo $emp->getId()?>"></td></tr>
<tr><td>姓名:</td><td><input type="text" name="name" value="<?php echo $emp->getName()?>"></td></tr>
<tr><td>级别:</td><td><input type="text" name="grade" value="<?php echo $emp->getGrade()?>"></td></tr>
<tr><td>邮箱:</td><td><input type="text" name="email" value="<?php echo $emp->getEmail()?>"></td></tr>
<tr><td>工资:</td><td><input type="text" name="salary" value="<?php echo $emp->getSalary()?>"></td></tr>
<input type="hidden" name="flag" value="updateEmp">
</table>
<input type="submit" value="修改">
<input type="reset" value="重新填写">
</form>
</body>
<hr>
<img alt="" src="./images/end.png">